This Method Requires More Parameters than were Passed Error

You didn't pass all the required parameters to a method. Another possibility is that you passed the required number of parameters but did not separate them with commas.


Example

Passing the required number of parameters but omitting a comma

ListBox1.insertRow  2 "Chicago"

:

ListBox1.insertRow "Chicago"

Passing too few parameters:

Dim c as Color
c= RGB(100,100) //returns "RGB takes 3 parameters"t

In the following examples, myFunction takes two parameters and returns a Double:

d=myFunction(5,6) //correct
d=myFunction (5,6) //also correct
d=myFunction 5,6 //error
d=myFunction //also an error